import http from './http'

// 问卷文件上传API
export const uploadQuestionnaireFile = (data) => {
  return http.post('/api/questionnaire/upload', data)
}

// 获取问卷文件列表
export const getQuestionnaireFiles = () => {
  return http.get('/api/questionnaire/files')
}

// 删除问卷文件
export const deleteQuestionnaireFile = (fileName) => {
  return http.delete(`/api/questionnaire/files/${fileName}`)
}

// 获取下一个问卷编号
export const getNextQuestionnaireNumber = () => {
  return http.get('/api/questionnaire/next-number')
}
